package com.gxa.web_admin.controller.system;

import com.gxa.common.vo.R;
import com.gxa.modules.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: zdk
 * Date: 2022/09/14 14:42
 * Description:
 * Version: V1.0
 */
@RestController
@RequestMapping("/system")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("/findMenuListByUserName")
    public R findMenuListByUserName(String username){

        return menuService.findMenuListByUserName(username);
    }
}
